package com.one.square.user.server.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.one.square.core.domain.Result;
import com.one.square.core.entity.SysDictData;
import com.one.square.core.vo.QuerySysDictDataVo;
import com.one.square.user.server.service.SysDictDataService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cwm
 * @Description 数据字典数据
 * @date 2021/11/1 上午11:40
 * @Version 1.0
 */
@RestController
@RequestMapping("/sys/dict/data")
@AllArgsConstructor
@Api(value = "/sys/dict/data", tags = {"数据字典数据"})
public class SysDictDataController {
    private final SysDictDataService service;

    @GetMapping("/list")
    public Result<IPage<SysDictData>> list(Page<SysDictData> page, QuerySysDictDataVo querySysDictDataVo){
        return this.service.list(page,querySysDictDataVo);
    }
}
